import ajax from "../request.js";
// 注册用户
export const getAccount = (params = {})=>{
	return ajax({
		url:"/api/user/register",
		method:"post",
		params
	})
}

// 用户登录
export const loginIn = (params = {}) => {
	return ajax({
		url:"/api/user",
		method:"post",
		params
	})
}
// whoami,恢复登录态
export const whoami = ()=>{
	return ajax({
		url:"/api/whoami",
		method:"get",
	})
}